#include <QCoreApplication>
#include <iostream>
#include <cmath>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication z(argc, argv);
    int a,b,c,d;
    cout<<"Vvedite trehznachnoe chislo: ";
    cin>>a;
    b=a%100;
    c=b%10;
    d=b/10;
    cout<<"desyatki: "<<d<<endl;
    cout<<"edinici: "<<c;
    return z.exec();
}
